<title><?= $sf_response->getTitle() ?></title>
<td><?php 
    if ($mr2->getStatus() == CommonValues::$gMRStatus['key']['Initial'])
    	echo link_to($mr2->getMrno() ? $mr2->getMrno() : __('-'), 'mr2/edit?id='.$mr2->getId());
    else if  ($mr2->getStatus() == CommonValues::$gMRStatus['key']['Cancel'])
    	echo link_to($mr2->getMrno() ? $mr2->getMrno() : __('-'), 'mr2/edit?id='.$mr2->getId(), array('confirm' => __('Are you sure you want to edit this canceled MR?'))) ;
    else if  ($mr2->getStatus() == CommonValues::$gMRStatus['key']['Rejected'])
        echo link_to($mr2->getMrno() ? $mr2->getMrno() : __('-'), 'mr2/edit?id='.$mr2->getId(), array('confirm' => __('Are you sure you want to edit this rejected MR?'))) ;
    else echo $mr2->getMrno();
    ?></td>
      <td><?php echo CommonValues::$gMRCategory['value'][$mr2->getCategory()] ?></td>
      <td><?php echo ($mr2->getReqarrdate() !== null && $mr2->getReqarrdate() !== '') ? format_date($mr2->getReqarrdate(), "D") : '' ?></td>
      <td><?php echo ($mr2->getCreatedAt() !== null && $mr2->getCreatedAt() !== '') ? format_date($mr2->getCreatedAt(), "D") : '' ?></td>
      <td><?php echo link_to($mr2->getComponentgroupId() ? image_tag('/sf/sf_admin/images/list.png', array('alt' => 'List', 'title' => 'List')):  __('-'), 'component/SLListModuleGroup?code='.$mr2->getMrno().'&componentgroup_id='.$mr2->getComponentgroupId().'&Authentication=VIEW_MRSUB&backURL=mr2~1list~2id~4'.$mr2->getId().'&titleqty=Qty to request&titleqty2=Min stock (%)') ?></td>
      <td><?php $user = sfGuardUserPeer::retrieveByPK($mr2->getUserId()); echo $user? $user->getFullname(): ''?></td>
      <td><?php echo CommonValues::$gMRStatus['value'][$mr2->getStatus()] ?></td>
      <td><?php echo CommonValues::$gMRApprovalStatus['value'][$mr2->getApprovalstatus()]  ?></td>
  